
package regraDeNegocio;

import bancoDeDados.BDPlaqueta;
import com.mysql.jdbc.CommunicationsException;
import com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException;
import java.sql.SQLException;

/**
 *
 * @author Grupo IV
 */

public class RNPlaqueta {
       
private int numero;
private String situacao;

   public RNPlaqueta(int numero){
    
    this.numero = numero;
    this.situacao = "Disponível";
    
    }

    public void insertBDPlaq(RNPlaqueta rnPlaq) throws MySQLIntegrityConstraintViolationException, CommunicationsException, SQLException{
        BDPlaqueta bdPlaq = new BDPlaqueta();
        bdPlaq.insertBD(rnPlaq);
    }
    
    public int getNumero() {
        return numero;
    }

    public void setNumero(int numero){
           this.numero = numero;
    }

    public String getSituacao() {
        return situacao;
    }

    public void setSituacao(String situacao){
        this.situacao = situacao;
    }

}